﻿namespace AnyOffice.Model
{
    using System;

    public class FlowRunData
    {
        protected DateTime _addTime = DateTime.Now;
        protected object _attachmentId;
        protected int _flowId;
        protected int _runId = -1;
        protected string _runName = string.Empty;
        protected int _status;

        public DateTime AddTime
        {
            get
            {
                return this._addTime;
            }
            set
            {
                this._addTime = value;
            }
        }

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public int FlowId
        {
            get
            {
                return this._flowId;
            }
            set
            {
                this._flowId = value;
            }
        }

        public int RunId
        {
            get
            {
                return this._runId;
            }
            set
            {
                this._runId = value;
            }
        }

        public string RunName
        {
            get
            {
                return this._runName;
            }
            set
            {
                this._runName = value;
            }
        }

        public int Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }
    }
}

